<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class SetupThumbsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
        Schema::create("thumbs", function($table){
            $table->increments("id")->unsigned();
            $table->string("name")->comment('图片名称');;
            $table->string("path")->comment('图片路径');;
            $table->integer('thumbable_id')->unsigned();
            $table->string('thumbable_type')->comment('模型类型');
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
        Schema::drop('thumbs');
	}

}
